package com.app.web.sys.share;

import com.app.utils.base.http.ResultUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * 提供海报相关服务接口 目前主要是分享的海报 和 启动的海报
 */
@RestController
@RequestMapping("/system/share/")
public class ShareController {
	@Autowired
	private ShareService shareService;

	/**
	 * 分享海报列表接口
	 * @return
	 */
	@ResponseBody
	@RequestMapping("list")
	public String list() {
		List<Map<String,Object>> list = shareService.share();
		return ResultUtil.success(list);
	}

}
